"""
This script allows the user to click to add points to a list of points used later to fit to.
the first command line arguement is the index of the data variable you'd like to make points for.
"""

from bEandI_classes import Cell
from genutils.point_maker import point_maker
import cPickle
import sys

column = sys.argv[1]
print column
col = int(column)

c = Cell('config_EandI')
datax = c.time
datay = c.data[col].average
points_list = point_maker(datax,datay)
    
print len(points_list)
print points_list
cPickle.dump(points_list,open("EandI_fit_points"+column+".pts",'w'))
    
